<?php


require_once 'db.php';

class keysword extends db {

    public function select() {
        $this->connect();
        $query = "SELECT * FROM keysword";
        $keysword = $this->query($query);
        return $keysword;
    }
    
    public function greater_10() {
        $this->connect();
        $query = "SELECT * FROM keywords";
        $keysword = $this->query($query);
        foreach ($keysword as $keysword) {
            if (strlen($keysword["name"])>10){
                echo $keysword["id"]." ";
                echo $keysword["name"]."<br>";                
            }
        }        
    }
}

?>
